package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author :蕉绿
 * @Date : 2023/2/15 22:05
 * @Version : V1.0
 * @Description :
 */

@RestController
public class TestController {

    @Value("${test}")
    private String string;

    @RequestMapping("/hi")
    public void getTest() {
        System.out.println(string);
    }
}
